from typing import Union

my_list: list[Union[str, int]] = [1, 2, 3, '4']

my_dict: dict[str, Union[str, int]] = {'key': "val", 'key1': 1}

print(my_list)
print(my_dict)
